package com.rui.service.impl;

import com.rui.domain.DevelopmentLanguage;
import com.rui.domain.DevelopmentLanguageExample;
import com.rui.mapper.DevelopmentLanguageMapper;
import com.rui.service.DevelopmentLanguageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("developmentLanguageService")
public class DevelopmentLanguageServiceImpl implements DevelopmentLanguageService {

    @Autowired
    private DevelopmentLanguageMapper developmentLanguageMapper;

    @Override
    public List<DevelopmentLanguage> findAll() {
        List<DevelopmentLanguage> developmentLanguages = developmentLanguageMapper.selectByExample(null);
        if (developmentLanguages!=null&&developmentLanguages.size()>0) {
            return developmentLanguages;
        }
        return null;
    }
}
